package br.upe.portlet.estagio.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * <a href="CursoSoap.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class is used by
 * <code>br.upe.portlet.estagio.service.http.CursoServiceSoap</code>.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see br.upe.portlet.estagio.service.http.CursoServiceSoap
 *
 */
public class CursoSoap implements Serializable {
    private long _codigo;
    private long _companyId;
    private long _userId;
    private Date _createDate;
    private Date _modifiedDate;
    private String _nome;
    private String _matriculaCoordenador;

    public CursoSoap() {
    }

    public static CursoSoap toSoapModel(Curso model) {
        CursoSoap soapModel = new CursoSoap();

        soapModel.setCodigo(model.getCodigo());
        soapModel.setCompanyId(model.getCompanyId());
        soapModel.setUserId(model.getUserId());
        soapModel.setCreateDate(model.getCreateDate());
        soapModel.setModifiedDate(model.getModifiedDate());
        soapModel.setNome(model.getNome());
        soapModel.setMatriculaCoordenador(model.getMatriculaCoordenador());

        return soapModel;
    }

    public static CursoSoap[] toSoapModels(List<Curso> models) {
        List<CursoSoap> soapModels = new ArrayList<CursoSoap>(models.size());

        for (Curso model : models) {
            soapModels.add(toSoapModel(model));
        }

        return soapModels.toArray(new CursoSoap[soapModels.size()]);
    }

    public long getPrimaryKey() {
        return _codigo;
    }

    public void setPrimaryKey(long pk) {
        setCodigo(pk);
    }

    public long getCodigo() {
        return _codigo;
    }

    public void setCodigo(long codigo) {
        _codigo = codigo;
    }

    public long getCompanyId() {
        return _companyId;
    }

    public void setCompanyId(long companyId) {
        _companyId = companyId;
    }

    public long getUserId() {
        return _userId;
    }

    public void setUserId(long userId) {
        _userId = userId;
    }

    public Date getCreateDate() {
        return _createDate;
    }

    public void setCreateDate(Date createDate) {
        _createDate = createDate;
    }

    public Date getModifiedDate() {
        return _modifiedDate;
    }

    public void setModifiedDate(Date modifiedDate) {
        _modifiedDate = modifiedDate;
    }

    public String getNome() {
        return _nome;
    }

    public void setNome(String nome) {
        _nome = nome;
    }

    public String getMatriculaCoordenador() {
        return _matriculaCoordenador;
    }

    public void setMatriculaCoordenador(String matriculaCoordenador) {
        _matriculaCoordenador = matriculaCoordenador;
    }
}
